import request from '@/utils/request'

// 分页查询
export const queryPageApi = (name,gender,begin,end,page,pageSize) => request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

// 添加员工
export const addEmpApi = (data) => request.post(`/emps`,data)

// 根据ID查询员工
export const getEmpByIdApi = (id) => request.get(`/emps/${id}`)

// 修改员工
export const updateEmpByIdApi = (data) => request.put(`/emps`,data)

// 删除员工
export const deleteEmpByIdsApi = (ids) => request.delete(`/emps?ids=${ids}`)